00001 00009 #include "ndame.h" 00010 00020 int main() 00021 { 00022 int imenu; 00023 struct data d1; 00024 //default values 00025 d1.m1=automatic; 00026 d1.iblength=8; 00027 d1.isolutions=0; 00028 d1.istep=0; 00029 d1.isave=0; 00030 d1.iauthor=0; 00031 d1.fcalctime=0; 00032 sprintf(d1.cfilename,"%s","C:\\ndame.txt"); 00033 00034 box(); 00035 state(&d1,0); 00036 do //menue is looped 00037 { 00038 imenu=menu(&d1); 00039 }while(imenu); 00040 00041 clrscr(); 00042 return 0; 00043 }